//
//  MYGAcademicDetailDateCell.swift
//  MYDoctor
//
//  Created by Denny on 2024/5/24.
//

import UIKit

class MYGAcademicDetailDateCell: UICollectionViewCell {
    @IBOutlet weak var bView: UIView!
    @IBOutlet weak var subTitleLB: UILabel!
    
    @IBOutlet weak var titleLB: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
     
    }
    var model : MYGMeetDateModel = MYGMeetDateModel() {
        didSet{
            titleLB.text = model.weekString
            subTitleLB.text = model.day
            if model.isSelected {
                titleLB.textColor = .white
                subTitleLB.textColor = .white
                bView.backgroundColor = UIColor.init(hexString: "#0A35A7")
            }else {
                titleLB.textColor = UIColor.init(hexString: "#304EEC")
                subTitleLB.textColor = UIColor.init(hexString: "#304EEC")
                bView.backgroundColor = UIColor.init(hexString: "#F5F8FB")
            }
        }
    }

 
}
